<style>
    input::-webkit-outer-spin-button,
    input::-webkit-inner-spin-button {
        -webkit-appearance: none;
    }

    input[type="number"] {
        -moz-appearance: textfield;
    }
</style>
<link href="__PUBLIC__/style/css/dialog.css" rel="stylesheet">

<form class="form-horizontal" id="dialog_form1" action="{:U('business/edit_project')}" method="post">
    <input type="hidden" name="id" value="{:I('id')}">
    <input type="hidden" name="key" value="{:I('key')}">
    <input type="hidden" name="kind" value="calllist">
<div class="full-height">
    <div class="content">
       <table class="beizhu">
           <tr>
               <td style="text-align: right;"><label style="color: red;">*</label>电话结果:</td>
               <td class="result_select" style="padding-left: 20px;">
                   <input type="hidden" value="{$cc_list['call_result']}" class="result" id="gjresult" name="call_result">
                   <input type="button" class="btn btn-select <?php if($cc_list['call_result']=='接通电话'){echo 'staactive';}?>" value="接通电话" rel="接通电话">
                   <input type="button" class="btn btn-select <?php if($cc_list['call_result']=='电话未接听'){echo 'staactive';}?>" value="电话未接听"  rel="电话未接听">
                   <input type="button" class="btn btn-select <?php if($cc_list['call_result']=='无效电话'){echo 'staactive';}?>" value="无效电话" rel="无效电话">
                   <input type="button" class="btn btn-select <?php if($cc_list['call_result']=='电话忙'){echo 'staactive';}?>" value="电话忙" rel="电话忙">
               </td>
           </tr>
           <tr>
               <td style="text-align: right;">是否继续跟进:</td>
               <td style="padding-left: 20px;">
                   <input value="{$cc_list['gj']}" id="gjflag" type="hidden">
                   <input type="radio" name="gj" value="1" <?php if($cc_list['gj']==1){echo 'checked';}?> >
                   <label for="gj">是</label>
                   <input type="radio" name="gj" value="0" <?php if(empty($cc_list['gj'])){echo 'checked';}?> >
                   <label for="gj">否</label>
                   <input type="text" readonly="readonly" class="time_se form-control timerinput"  id="gjtime" name="gjtime"  onFocus="WdatePicker({dateFmt:'yyyy-MM-dd  HH:mm', minDate:&quot;#F{$dp.$D('gjtime')}&quot;,maxDate:'2038-01-01'})"  placeholder="选择时间" >
               </td>
           </tr>
           <tr>
               <td style="text-align: right;">是否目标候选人:</td>
               <td style="padding-left: 20px;">
                   <input value="{$cc_list['target']}" id="target" type="hidden">
                   <input type="radio" name="target" value="1" <?php if($cc_list['target']==1){echo 'checked';}?> >
                   <label for="mubiao">是</label>
                   <input type="radio" name="target" value="0" <?php if(empty($cc_list['target'])){echo 'checked';}?> >
                   <label for="mubiao">否</label>
               </td>
           </tr>
           <tr>
               <td style="text-align: right;">年龄:</td>
               <td style="padding-left: 20px;">
                   <input type="text" class="form-control" name="age" value="{$cc_list['age']}"/>
               </td>
           </tr>
           <tr>
               <td style="text-align: right;">在职/离职:</td>
               <td style="padding-left: 20px;">
                    <select name="onwork" class="form-control">
                        <option value="" <if condition="$cc_list['onwork'] eq  ''">selected="selected"</if>>----</option>
                        <option value="1" <if condition="$cc_list['onwork'] eq '1'">selected="selected"</if>>离职</option>
                        <option value="2" <if condition="$cc_list['onwork'] eq '2'">selected="selected"</if>>在职</option>
                    </select>
               </td>
           </tr>
           <tr style="margin-top: 10px;">
               <td style="text-align: right;">目前公司和职位:</td>
               <td style="padding-left: 20px;">
                   <input type="text" class="form-control" name="company_position" value="{$cc_list['company_position']}"/>
               </td>
           </tr>
           <tr>
               <td style="text-align: right;">目前薪酬:</td>
               <td style="padding-left: 20px;">
                   <input type="text" class="form-control" name="current_receive"  value="{$cc_list['current_receive']}"/>
               </td>
           </tr>
           <tr>
               <td style="text-align: right;">期望薪酬:</td>
               <td style="padding-left: 20px;">
                   <input type="text" class="form-control" name="exp_receive" value="{$cc_list['exp_receive']}"/>
               </td>
           </tr>
           <tr>
               <td style="text-align: right;">离职/看新机会的原因:</td>
               <td style="padding-left: 20px;">
                   <textarea class="form-control" name="off_reason" col="2" row="5">{$cc_list['off_reason']}</textarea>
               </td>
           </tr>
           <tr>
               <td style="text-align: right">期望的机会类型:</td>
               <td style="padding-left: 20px;">
                   <input class="form-control" type="text" name="chance"  value="{$cc_list['chance']}"/>
               </td>
           </tr>
           <tr>
               <td style="text-align: right">婚育状况:</td>
               <td style="padding-left: 20px;">
                   <select name="marital" class="form-control">
                       <option value="" <if condition="$cc_list['marital'] eq ''">selected="selected"</if>>----</option>
                       <option value="1" <if condition="$cc_list['marital'] eq '1'">selected="selected"</if>>未婚</option>
                       <option value="2" <if condition="$cc_list['marital'] eq '2'">selected="selected"</if>>已婚</option>
                   </select>
               </td>
           </tr>
           <tr>
               <td style="text-align: right">籍贯:</td>
               <td style="padding-left: 20px;">
                   <input type="text" class="form-control" name="native" value="{$cc_list['native']}">
               </td>
           </tr>
           <tr>
               <td style="text-align: right">未来规划:</td>
               <td style="padding-left: 20px;">
                   <textarea name="plans" class="form-control" col="2" row="5">{$cc_list['plans']}</textarea>
               </td>
           </tr>
       </table>
    </div>
</div>
</form>

<script>

    $(function () {
        $(".result_select input").click(function () {
            var result=$(this).attr("rel");
            $(".result_select input").removeClass("staactive");
            $(this).addClass("staactive");
            $(".result").val(result);
        })

        $("input[name=gj]").click(function () {
            var gjflag=$(this).val();
            if(gjflag=="1" || gjflag==1){
                $(".time_se").show();
            }else{
                $(".time_se").hide();
                $(".time_se").val("");
            }
            $("#gjflag").val(gjflag);
        })

        $("input[name=mubiao]").click(function () {
            var mbflag=$(this).val();
            $("#mbflag").val(mbflag);
        })
    })



</script>
